//
//  PageMapView.h
//  KidReading
//
//  Created by telen on 15/2/6.
//  Copyright (c) 2015年 刘赞黄Telen. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JRiCarousel.h"

@protocol PageMapViewDelegate <NSObject>

@optional
- (void)pageMapViewDidSelectPageIndex:(NSInteger)index;

@end

@interface MicroPageView : UIView
{
    UIImageView* imgv;
    UILabel* label;
}
- (void)setPageIndex:(NSInteger)index;
- (void)setPageStr:(NSString*)str;
- (void)setShowImage:(UIImage*)image;
- (void)setHighlight:(BOOL)yn;
@end

@interface PageMapView : UIView<JRiCarouselDataSource,JRiCarouselDelegate>
{
    CGFloat ratio;
    //
    JRiCarousel* carousel;
    MicroPageView* currentMview;
}
@property(nonatomic,assign)NSInteger bookid;
@property(nonatomic,strong)NSArray* pagesArr;
@property(nonatomic,assign)NSInteger currentIndex;
@property(nonatomic,assign)NSInteger mapHeigth;
@property(nonatomic,weak)id<PageMapViewDelegate> delegate;
@property(nonatomic,strong)NSArray* pageDisArr;

- (void)flashPageMap;
- (void)flashCurrentIndex;

- (void)show;
- (void)unShow;

@end
